<?php
/**
 * Middleware  	系统核心-中间件接口
 * @copyright   Copyright(c) 2024-2034
 * @author      tianjie <527707665@qq.com>
 * @link        http://www.tinphp.com/
 * @version     4.1
 */

namespace tian;

/**
 * 中间件管理类
 */
interface MiddlewareInterface
{
    /**
     * @param Request $request
     * @param $next
     * @return Response
     */
    public function handle(Request $request, $next): Response;
}
